﻿using System.Collections;
using System.Text;
using SimpleJSON;
using ROSBridgeLib.std_msgs;

namespace ROSBridgeLib {
    namespace geometry_msgs {
        public class TransformsMsg : ROSBridgeMsg {
           
            public TransformMsg[] transforms;
          

            public TransformsMsg(JSONNode msg) {

                JSONArray array=msg["transforms"].AsArray;
           

                transforms=new TransformMsg[array.Count];

                for (int i=0;i<array.Count;i++)
                {

                    transforms[i]=new TransformMsg(array[i]);

                }

            }
            public TransformsMsg() {

              
            }


            public override string ToYAMLString() {

                return "";

            } 


            /*          
            public static string GetMessageType() {
                return "geometry_msgs/Twist";
            }
            
            public Vector3Msg GetLinear() {
                return _linear;
            }

            public Vector3Msg GetAngular() {
                return _angular;
            }
            
            public override string ToString() {
                return "Twist [linear=" + _linear.ToString() + ",  angular=" + _angular.ToString() + "]";
            }
            
            public override string ToYAMLString() {
                return "{\"linear\" : " + _linear.ToYAMLString() + ", \"angular\" : " + _angular.ToYAMLString() + "}";
            } */
        }
    }
}